#include "mainwindow.h"
#include <QApplication>
#include "main_controller.h"
#include <memory>
#include <boost/shared_ptr.hpp>
#include <iostream>
using namespace std;

const char *master_names[]={"left_device","right_device"};
const char *slave_names[]={"no_target","left_handarm","right_handarm","vehicle","waist"};
bool global_stop_flag;
void stop_callback(int signal)
{
    cout<<"stop_callback"<<endl;
    global_stop_flag=true;
}
#include "utils.h"
int main(int argc, char *argv[])
{
    global_stop_flag=false;

    cout << "Hello World!" << endl;
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    int ret = a.exec();

    global_stop_flag=true;
    cout << "main() stop!" << endl;
    return ret;
}
